﻿@page "/components/expansionpanels"

<DocsPage>
    <DocsPageHeader Title="Expansion Panels"/>
    <DocsPageContent>
        <DocsPageSection>
            <SectionHeader Title="Simple Usage">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelSimpleExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelSimpleExample" ShowCode="false" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Multiple Expanded Panels">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelMultiExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelMultiExample" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Disabled">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelDisabledExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelDisabledExample" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Padding">
                <Description>The padding of the panels can be controlled with <CodeInline>DisableGutters</CodeInline> and <CodeInline>Dense</CodeInline>. These can be set individually per panel or applied on all panels by setting them on the parent.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelPaddingExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelPaddingExample" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Borders">
                <Description>The <CodeInline>DisableBorders</CodeInline> property removes all borders around the panel.<br />For a flatter UI design, this might be preferred along with <CodeInline>Elevation</CodeInline> set to 0.</Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelDisableBorderExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelDisableBorderExample" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

        <DocsPageSection>
            <SectionHeader Title="Customizing the Header and Icon">
                <Description></Description>
            </SectionHeader>
            <SectionContent DarkenBackground="true" FullWidth="true">
                <ExpansionPanelTitleExample />
            </SectionContent>
            <SectionSource Code="ExpansionPanelTitleExample" GitHubFolderName="ExpansionPanel" />
        </DocsPageSection>

    </DocsPageContent>
</DocsPage>
